package cn.yunyichina.reservation.component.qiniu;

import com.qiniu.storage.UploadManager;
import com.qiniu.util.Auth;

/**
 * Created by Lullaby on 2016/8/27.
 */
public enum Qiniu {

    INSTANCE {
        public Auth auth() {
            return Auth.create(ACCESS_KEY, SECRET_KEY);
        }

        public UploadManager manager() {
            return new UploadManager(null);
        }
    };

    String ACCESS_KEY = "6MpX59besahQ1TEFbRRd0hGEr8Alf1OMWP9Vr9Pp";

    String SECRET_KEY = "q3i6AXH6m8qmMJwnwTdVG9h9Y0pozcD6-oQTM0Px";

    public abstract Auth auth();

    public abstract UploadManager manager();

}
